<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class ChannelAddDailyRegisterLimit extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::table('channel', function (Blueprint $table) {
            $table->integer('daily_register_limit')->default(0)->comment('每日最大注册数量');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::table('channel', function (Blueprint $table) {
            $table->dropColumn(['daily_register_limit']);
        });
    }
}
